package com.aspose.cells;

class zwk extends zck {
   zwk(zn var1, float var2, float var3, zbkr var4) {
      super(var1, var2, var3, var4);
   }

   com.aspose.cells.b.a.b.a.ze a(com.aspose.cells.b.a.b.zq var1) {
      float var2 = var1.f();
      float var3 = var1.g();
      float var4 = var1.h();
      float var5 = var1.i();
      com.aspose.cells.b.a.b.a.ze var6 = new com.aspose.cells.b.a.b.a.ze();
      switch(this.e.b) {
      case 1:
      case 2:
         var6.a(var2 + 2.0F * var4 / 3.0F, var3, var4 / 3.0F, var5, 270.0F, 180.0F);
         var6.b(var2 + 5.0F * var4 / 6.0F, var3 + var5, var2 + var4 / 6.0F, var3 + var5);
         var6.b(var2 + var4 / 6.0F, var3 + var5, var2, var3 + var5 / 2.0F);
         var6.b(var2, var3 + var5 / 2.0F, var2 + var4 / 6.0F, var3);
         var6.b(var2 + var4 / 6.0F, var3, 5.0F * var4 / 6.0F, var3);
         break;
      case 3:
      case 4:
         var6.a(var2, var3, var4 / 3.0F, var5, 90.0F, 180.0F);
         var6.b(var2 + var4 / 6.0F, var3, var2 + 5.0F * var4 / 6.0F, var3);
         var6.b(var2 + 5.0F * var4 / 6.0F, var3, var2 + var4, var3 + var5 / 2.0F);
         var6.b(var2 + var4, var3 + var5 / 2.0F, var2 + 5.0F * var4 / 6.0F, var3 + var5);
         var6.b(var2 + 5.0F * var4 / 6.0F, var3 + var5, var4 / 6.0F, var3 + var5);
      }

      var6.i();
      return var6;
   }

   void c(com.aspose.cells.b.a.b.zq var1) {
      var1 = this.d(var1);
      super.c(var1);
   }

   private com.aspose.cells.b.a.b.zq d(com.aspose.cells.b.a.b.zq var1) {
      float var2 = var1.f() + var1.h() / 6.0F;
      float var3 = var1.g();
      com.aspose.cells.b.a.b.zq var4 = new com.aspose.cells.b.a.b.zq(var2, var3, 2.0F * var1.h() / 3.0F, var1.i());
      return var4;
   }
}
